package com.cc.spring.common;

public class CommonResp<T> {
    private String message;
    private Boolean isSuccess;
    private T content;// 返回的内容
    public CommonResp(){
//        默认成功
        this.isSuccess = true;
    }

    public Boolean getSuccess() {
        return isSuccess;
    }

    public void setSuccess(Boolean success) {
        isSuccess = success;
    }

    public T getContent() {
        return content;
    }

    public void setContent(T content) {
        this.content = content;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    @Override
    public String toString() {
        return "CommonResp{" +
                "message='" + message + '\'' +
                ", isSuccess=" + isSuccess +
                ", content=" + content +
                '}';
    }
}
